package com.study.preview;

import com.study.preview.preview01.bank.account.Account;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
//@SpringBootTest(classes = {Account.class})
@SpringBootTest
public class ProjectPreviewApplicationTests1 {

    @Autowired

    private ApplicationContext applicationContext;

    //@Mock
    @Autowired
    private Account account;

//    @Autowired
//    private User user;

    @Test
    public void contextLoads() {
        //Object o=applicationContext.getBean(Account.class);
        //o=applicationContext.getBean(User.class);
        System.out.println("111");
        System.out.println(account);
    }


    @Test
    public void test(){
        System.out.println(account.getInt(1));
    }


}
